//Major transliteration function
function JSfunc()
{
	
	this.strTranslit = function(el)
	{
		new_el = document.getElementById('out');
		
		new_el.value = el.value.replace(/([\u0410-\u04EB])/g,
			function (str,p1,offset,s) {
				if (A[str] != 'undefined'){return A[str];}
			}
		);
	}
	/* Normalizes a string, eю => eyu */
	this.strNormalize = function(el)
	{
		if (!el) { return; }
		this.strTranslit(el);
	}
}
var oJS = new JSfunc();
